<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 最好8个字段,超过 ...
        let name  ="你搜不到的土嗨神曲你搜不到的";
        // length获取字符串的长度
        //slice(start,end)
        if(name.length>8){
            name = name.slice(0,8)+"..."
        }
        console.log(name)
        console.log(name.slice(0,2))

        let arr = [1,2,3];
        let b = [4,5,6];
        // concat
        let a = arr.concat(b);
        console.log(a)
    </script>
</body>
</html>